#!/usr/bin/python

import sys
import os.path


def get_script_dir():
    "return the abs dir where the script is located"
    script_path = os.path.abspath(sys.argv[0])
    
    return os.path.split(script_path)[0]


if __name__ == "__main__":
    print get_script_dir()
